﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tuReserva.Model
{
	public class Reserve
	{
		public int ID { get; set; }
		public String Date { get; set; }
		public String Time { get; set; }
		public String State { get; set; }
		public Restaurant Restaurant { get; set; }
		public User Costumer { get; set; }

		public bool isNew
		{
			get
			{
				return this.ID.Equals(0);
			}
		}

		public Reserve()
		{
			this.ID = 0;
			this.Restaurant = new Restaurant();
			this.Costumer = new User();
			this.Date = DateTime.Now.ToString("dd/MM/yyyy");
			this.Time = DateTime.Now.ToString("HH:mm:ss");
		}

		public Reserve(Restaurant r) : this()
		{
			this.Restaurant = r;
		}
	}
}
